angular.module('starter.controllers', [])
    .controller('IndexController', function ($scope) {
        //点击导航显示下拉菜单
        $scope.flag1 = false;
        $scope.flag2 = false;
        $scope.flag3 = false;
        //添加设备左右切换
        var swiper = new Swiper('#swiper-container', {
            pagination: '.swiper-pagination',
            nextButton: '.swiper-button-next',
            prevButton: '.swiper-button-prev',
            slidesPerView: 8,
            /*centeredSlides: true,*/
            paginationClickable: true,
            spaceBetween: 18
        });
        //图层控制
        $scope.icons=[{name:'隧道灯'},{name:'立柱式情报板'},{name:'门架式情报板'},{name:'吊装情报板'},{name:'风机'},
            {name:'两态车道指示器'},{name:'三态车道指示器'},{name:'枪机摄像机'},{name:'球形摄像机'},{name:'光强'},
            {name:'风速风向监测器'},{name:'交通信号灯'},{name:'CO/VI'},{name:'人行横洞标志'}]
        //添加设备显示到马路上
        $scope.devices=[{src:'index_15_img.png'},{src:'index_14_img.png'}];
        
    })